<%@include file="header.jsp"%>

<div class="tabela">
<script type="text/javascript">
			function Formatadata(Campo, teclapres)
			{
				var tecla = teclapres.keyCode;
				var vr = new String(Campo.value);
				vr = vr.replace("/", "");
				vr = vr.replace("/", "");
				vr = vr.replace("/", "");
				tam = vr.length + 1;
				if (tecla != 8 && tecla != 8)
				{
					if (tam > 0 && tam < 2)
						Campo.value = vr.substr(0, 2) ;
					if (tam > 2 && tam < 4)
						Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2);
					if (tam > 4 && tam < 7)
						Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2) + '/' + vr.substr(4, 7);
				}
			}
</script>
<s:actionmessage />
<h2><s:text name="Album" /> <s:property value="nomeAlbum"
	escapeHtml="false" /></h2>
<h2><s:text name="OfertaVenda" /></h2>
<s:form action="salvarOfertaVenda" namespace="/album">
	<s:hidden name="idAlbum"></s:hidden>
	<s:hidden name="nomeAlbum"></s:hidden>
	<s:textarea key="descricao" name="descricao" value="" cols="40" rows="10"/>
	<s:textfield key="preco.venda.imediata" name="precoFinal" value="" size="12" />
	<s:textfield key="preco.inicial" name="precoInicial" value="" size="12" />
	<s:textfield key="data.vencimento" name="dataFinal" value="" size="12"  onkeyup="Formatadata(this,event);"/>
	<s:submit key="salvarOferta"/>
</s:form>

</div>
<%@include file="footer.jsp"%>